<?php
namespace Weibo\Model;
use Common\Model\BaseModel;
class WeiboUserBlacklistModel extends BaseModel {
	
	/**
	 * 返回是否在黑名单中
	 * @param	number	$user_id	发起用户
	 * @param	number	$target_id	目标用户
	 * @return	boolean
	 */
	public function inBlacklist($user_id, $target_id) {
		return TRUE && $this -> where(array('user_id' => $user_id, 'target_id' => $target_id)) -> count();
	}
}
